package com.sc.auction.common.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author theTi
 * @since 2020-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Order对象", description="")
public class Orders implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单编号")
    private String orderno;

    @ApiModelProperty(value = "订单状态   1表示待付款（生成时默认） 2表示 买家付款成功 3表示已发货 4表示买家签收  订单完成  0表示付款失败   -1表示 订单关闭")
    private Integer status;

    @ApiModelProperty(value = "买家名称")
    private String buyer;

    @ApiModelProperty(value = "手机号码")
    private String telephone;

    @ApiModelProperty(value = "收货地址")
    private String address;

    @ApiModelProperty(value = "总金额")
    private BigDecimal money;

    @ApiModelProperty(value = "创建时间")
    @TableField("creationDate")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date creationDate;

    @ApiModelProperty(value = "更改时间")
    @TableField("modifyDate")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;

    @ApiModelProperty(value = "拍品id")
    private Integer auctionid;

    @ApiModelProperty(value = "用户id")
    private Integer userid;

}
